Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 11, 2024

Now that our background worker system supports automatic deduplication we don't need the enqueue_sync_to_index() fn anymore. The old fn had the advantage of only needing a single query to enqueue both jobs, but IMHO the additional complexity isn't worth it and with diesel-async supporting pipelining it should be possible to mitigate the performance impact too.

This requires two queries instead of one, but it significantly simplifies the code, now that our worker system supports automatic deduplication. Once the enqueuing code uses `diesel-async` the performance hit can be mitigated by using pipelining via `try_join!()`.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Oct 11, 2024
@Turbo87 Turbo87 requested a review from a team October 11, 2024 13:28
@codecov
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 12 lines in your changes missing coverage. Please review.

Project coverage is 88.85%. Comparing base (868a502) to head (b19bdfd).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/admin/delete_crate.rs 0.00% 5 Missing ⚠️
src/admin/delete_version.rs 0.00% 5 Missing ⚠️
src/admin/yank_version.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9629      +/-   ##
==========================================
- Coverage   88.88%   88.85%   -0.04%     
==========================================
  Files         289      288       -1     
  Lines       29232    29222      -10     
==========================================
- Hits        25982    25964      -18     
- Misses       3250     3258       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Turbo87 Turbo87 merged commit 261f91e into rust-lang:main Oct 11, 2024
10 checks passed
@Turbo87 Turbo87 deleted the inline-sync-index branch October 11, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants